package cn.hchaojie.spring.day01;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.hchaojie.spring.day01.beans.UserBean;

public class DemoPNamespaceInject {
	ApplicationContext context;
	@Before
	public void init() {
		context = new ClassPathXmlApplicationContext("context.xml");
	}

	@Test
	public void test() {
		UserBean bean = context.getBean(UserBean.class);
		System.out.println(bean);
	}
}
